home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / Disk 2 / _SETUP.2 / Group4 / resultv2.lss < prev    next >
Text File  |  2002-01-04  |  11KB  |  277 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script Version 2.0
  4. ;
  5. ; Copyright (c) 1995-2001 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; script updated for FinishLynx 4 by Todd Chamoy 11/20/2001
  10. ;
  11. ; Notes:
  12. ;  + Empty lines and lines that start with a semicolon are ignored.
  13. ;
  14. ;  + Lines that start with two semicolons indicate a section header.
  15. ;    The current section headers and their valid group codes are:
  16. ;      ;;Initialization
  17. ;        \10 \13 \17
  18. ;      ;;TimeRunning
  19. ;      ;;TimeStopped
  20. ;      ;;TimeGun
  21. ;      ;;TimeBreak
  22. ;      ;;TimeUpdate
  23. ;      ;;TimeOfDay
  24. ;        \11 \13 \17
  25. ;      ;;Wind
  26. ;        \12 \13 \17
  27. ;      ;;ResultsHeader
  28. ;      ;;ResultsTrailer
  29. ;      ;;StartListHeader
  30. ;      ;;StartListTrailer
  31. ;        \13 \17
  32. ;      ;;Result
  33. ;      ;;StartList
  34. ;        \13 \14 \17
  35. ;      ;;MessageHeader
  36. ;      ;;MessageTrailer
  37. ;        \13 \15 \17
  38. ;      ;;Message
  39. ;        \13 \15 \16 \17
  40. ;    Sections may be omitted, appear in any order, and occur more than once.
  41. ;
  42. ;  + Format lines must begin with a one byte group code and a one byte
  43. ;    variable code. The special variable code \00 indicates that no variable
  44. ;    is being requested. If a variable is requested it will be inserted where
  45. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  46. ;    specifier in lines requesting a variable and no other printf format
  47. ;    specifiers may appear. Remember, lines requesting a variable are used as
  48. ;    a printf format string and therefore must behave as such. Lines not 
  49. ;    requesting a variable (variable code \00) can do whatever they want as
  50. ;    these lines are not fed to a printf statement.
  51. ;    The current group codes and their variable codes are:
  52. ;      \10  Initialize
  53. ;         \00  No variable
  54. ;      \11  Time
  55. ;         \00  No variable
  56. ;         \01  Formatted time
  57. ;         \02  Binary time in milliseconds (4 byte little endian integer)
  58. ;      \12  Wind
  59. ;         \00  No variable
  60. ;         \01  Formatted wind
  61. ;         \02  Binary wind in hundredths of units (4 byte little endian integer)
  62. ;      \13  Results Header/Trailer
  63. ;         \00  No variable
  64. ;         \01  OFFICIAL/UNOFFICIAL string
  65. ;         \02  Event name
  66. ;         \03  Wind
  67. ;         \04  Event number
  68. ;         \05  Round number
  69. ;         \06  Heat number
  70. ;         \07  AUTO/MANUAL start type
  71. ;         \08  Number of participants
  72. ;      \14  Result
  73. ;         \00  No variable
  74. ;         \01  Place
  75. ;         \02  Lane
  76. ;         \03  Id
  77. ;         \04  Name
  78. ;         \05  Affiliation
  79. ;         \06  Time
  80. ;         \07  Delta Time
  81. ;         \08  Cumulative Split Time
  82. ;         \09  Last Split Time
  83. ;         \0a  Laps To Go
  84. ;         \0b  License
  85. ;         \0c  ReacTime
  86. ;         \0d  Speed
  87. ;         \0e  Pace
  88. ;      \15  Message Header/Trailer
  89. ;         \00  No variable
  90. ;      \16  Message
  91. ;         \00  No variable
  92. ;         \01  Text
  93. ;      \17  Break Time
  94. ;         \00  No variable
  95. ;         \nn  Formatted break time nn
  96. ;
  97. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  98. ;    digit. Note that h must be lowercase.
  99. ;
  100. ;  + Format lines can have the following commands embedded in them.
  101. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  102. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  103. ;     \Ui\hh  Set the 'U' value to register[hh].
  104. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  105. ;     \Xi\hh  Set the 'X' value to register[hh].
  106. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  107. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  108. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  109. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  110. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  111. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  112. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  113. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  114. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  115. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  116. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  117. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  118. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  119. ;             next {X|<eol>} characters.
  120. ;              \U\00  IDS checksum.
  121. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  122. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  123. ;              \U\03  CRC-16. register[hh] is used as the seed value
  124. ;                       and register[hh+1] is the polynomial.
  125. ;              \U\04  CRC-32. register[hh] is used as the seed value
  126. ;                       and register[hh+1] is the polynomial.
  127. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  128. ;              \U\00  Binary little-endian (Intel byte order).
  129. ;              \U\01  Binary big-endian (Motorola byte order).
  130. ;              \U\02  ASCII text right justified space padded.
  131. ;              \U\03  ASCII text right justified zero padded.
  132. ;              \U\04  ASCII text left justified space padded.
  133. ;              \U\05  ASCII text left justified zero padded.
  134. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  135. ;              \U\00  ASCII text base 10.
  136. ;              \U\01  Binary little-endian (Intel byte order).
  137. ;              \U\02  Binary big-endian (Motorola byte order).
  138. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  139. ;              \P\00  Reverse characters.
  140. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  141. ;                       is the current character position on entry and the
  142. ;                       next character position on exit.
  143. ;              \P\02  Convert characters to Daktronics AllSport format.
  144. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  145. ;             before the cursor or until the string contains X characters.
  146. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  147. ;             at the cursor or until the string contains X characters.
  148. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  149. ;             contains X characters.
  150. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  151. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  152. ;             beginning of the line if zero).
  153. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  154. ;             end of the line if zero).
  155. ;    Note that numbers 0 thru 9 can be entered directly for single character
  156. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  157. ;    '\=\01' is the same as '\=1'.
  158. ;
  159. ;  + Be very careful about whitespace in each format line. Characters other
  160. ;    than '%s' specifiers and embedded commands and values will be sent
  161. ;    exactly as they appear on the line. This means, for instance, that using
  162. ;    tabs to make a line 'look right' in you favorite editor will cause
  163. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  164. ;    spaces (probably not what you wanted).
  165. ;
  166. ; The format lines follow.
  167.  
  168. ;;TimeRunning
  169. ; This is sent approximately 10 times per second.
  170. ; Line codes:
  171. ;  \00  No variable
  172. ;  \01  Formatted time
  173. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  174. ; Setting register[0] to 1 in a format line will cause that line and
  175. ; subsequent lines to only be sent once per second (when the second's 
  176. ; digit changes) instead of approximately 10 times per second. Setting
  177. ; register[0] to 0 will resume normal operation for remaining lines.
  178. \11\01\01T\02%15.15s\03\04
  179.  
  180. ;;TimeStopped
  181. ; This is sent when the time is stopped by a beam break.
  182. ; Line codes are identical to the TimeRunning line codes.
  183. \11\01\01T\02%15.15s\03\04
  184.  
  185. ;;TimeOfDay
  186. ; This is sent when the 'Send time of day' option is checked in the
  187. ; Scoreboard pull down menu.
  188. ; Line codes are identical to the TimeRunning line codes.
  189. \11\01\=0\01T\02%15.15s\B4\I4\R0\03\04
  190.  
  191. ;;ResultsHeader
  192. ; This is sent once each time the scoreboard is updated with results. It
  193. ; is sent before any result lines are sent.
  194. ; Line codes:
  195. ;  \00  No variable
  196. ;  \01  OFFICIAL/UNOFFICIAL string
  197. ;  \02  Event name
  198. ;  \03  Wind
  199. ;  \04  Event number
  200. ;  \05  Round number
  201. ;  \06  Heat number
  202. ;  \07  AUTO/MANUAL start type
  203. ;  \08  Number of participants
  204. \13\00\01R\02
  205. \13\01%15.15s
  206. \13\02%31.31s
  207. \13\03%15.15s
  208. \13\04%7.7s
  209. \13\05%7.7s
  210. \13\06%7.7s
  211. \13\07%15.15s
  212. \13\08%7.7s
  213.  
  214. ;;ResultsTrailer
  215. ; This is sent once each time the scoreboard is updated with results. It
  216. ; is sent after all result lines are sent.
  217. ; Line codes are identical to the ResultsHeader line codes.
  218. \13\00\03\04
  219.  
  220. ;;Result
  221. ; This is sent once for each result line displayed on the scoreboard.
  222. ; Line codes:
  223. ;  \00  No variable
  224. ;  \01  Place
  225. ;  \02  Lane
  226. ;  \03  Id
  227. ;  \04  Name
  228. ;  \05  Affiliation
  229. ;  \06  Time
  230. ;  \07  Delta Time
  231. ;  \08  Cumulative Split Time
  232. ;  \09  Last Split Time
  233. ;  \0a  Laps To Go
  234. ;  \0b  License
  235. ;  \0c  ReacTime
  236. ;  \0d  Speed
  237. ;  \0e  Pace
  238. ; Register[0] is initialized with the index of the current result line and
  239. ; will range from 0 through PageSize - 1.
  240. \14\01%7.7s
  241. \14\02%7.7s
  242. \14\03%7.7s
  243. \14\04%31.31s
  244. \14\05%31.31s
  245. \14\06%15.15s
  246. \14\07%15.15s
  247. \14\08%15.15s
  248. \14\09%15.15s
  249. \14\0a%15.15s
  250. \14\0b%15.15s
  251. \14\0c%15.15s
  252. \14\0d%15.15s
  253. \14\0e%15.15s
  254.  
  255. ;;MessageHeader
  256. ; This is sent once each time the scoreboard is updated with the message. It
  257. ; is sent before any message lines are sent.
  258. ; Line codes:
  259. ;  \00  No variable
  260. \15\00\01M\02
  261.  
  262. ;;MessageTrailer
  263. ; This is sent once each time the scoreboard is updated with the message. It
  264. ; is sent after all message lines are sent.
  265. ; Line codes are identical to the MessageHeader line codes.
  266. \15\00\03\04
  267.  
  268. ;;Message
  269. ; This is sent once for each message line displayed on the scoreboard.
  270. ; Line codes:
  271. ;  \00  No variable
  272. ;  \01  Text
  273. ; Register[0] is initialized with the index of the current message line and
  274. ; will range from 0 through <number of lines> - 1.
  275. \16\01%64.64s
  276.  
  277.